from django.contrib import admin

admin.site.site_header = '路飞的博客管理'  # 设置header
admin.site.site_title = '路飞后台管理'  # 设置title


# 轮播图
from .models import Banner
from luffyapi.utils.models import BaseModel
class BannerModelAdmin(admin.ModelAdmin):
    list_display=["title","orders","is_show"]
admin.site.register(Banner, BannerModelAdmin)

# 导航菜单
from .models import Nav
class NavModelAdmin(admin.ModelAdmin):
    list_display = ["title", "link", "is_show", "is_site", "position"]
admin.site.register(Nav, NavModelAdmin)







